<template>
	<view>
		<button type="default" @tap="btn">登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			btn(){
				let token = uni.getStorageSync('token')
				if(token){
					console.log('有token');
				}else{
					uni.reLaunch({
						url:'/pages/login/login'
					})
				}
			}
		}
	}
</script>

<style lang="scss">

</style>
